package top.yongyan0624.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author yongyan
 * @since 2021-09-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class Dynamic extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private Long userId;

    @TableField(exist = false)
    private SysUser user;

    private String title;

    private String content;

    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String img;

    @TableField(exist = false)
    private List<String> imgList;

    private String tag;

    private Integer likeNum;

    @TableField(exist = false)
    private Boolean isLike = false;

    private Integer starNum;

    @TableField(exist = false)
    private Boolean isStar = false;

    private Integer commentNum;

    @TableField(exist = false)
    private List<DynamicComment> commentList;

}
